package com.tim.soundseechina;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource;

import com.tim.soundseechina.service.IInformationInfoService;
import com.tim.soundseechina.service.impl.InformationInfoServiceImpl;

public class SoundSeeChina {
	// 声色中国-读中国页面地址
	static final String URL = "http://reading.soundseechina.com";
	// 中国文化所在文件地址
	static final String CHINESE_CULTURE = "D:/Program Files/tomcat-6.0.33/webapps/imgServer/ChineseCulture/";
	final static String CHAR_SET = "GB2312";
	static BeanFactory factory;
	static IInformationInfoService informationInfoService;
	static Cache cache;
	static {
		Resource resource = new FileSystemResource(
				"resource/applicationContext.xml");
		factory = new XmlBeanFactory(resource);
		informationInfoService = (InformationInfoServiceImpl) factory
				.getBean("informationInfoService");
		cache = (Cache) factory.getBean("cache");
	}

	public static void main(String[] args) {
		// 风景相册
		// Landscape landscape = new Landscape();
		// landscape.start();

		// 56个名族
		// Nationality nationality = new Nationality();
		// nationality.start();

		// 民间故事

		// 民俗风情
		// Custom custom = new Custom();
		// custom.start();

		// 文化经典
		// Culture culture = new Culture();
		// culture.start();

		// 特色美食
		// Food food = new Food();
		// food.start();

		// 功夫之道
		// KongFu kongfu = new KongFu();
		// kongfu.start();

		// 养生之道
		// Health health = new Health();
		// health.start();

		// 历史回顾
		// History history = new History();
		// history.start();

		// 历史上的今天
		// Today today = new Today();
		// today.start();

		// TODO 历史上的名人-暂时无法对朝代检索，需要手动修改typeId字段
		// Celebrity celebrity = new Celebrity();
		// celebrity.start();
	}
}
